package com.owen.blog.service;

import com.owen.blog.domain.ContentDO;
import com.owen.blog.vo.AesPasswordVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 文章内容
 */
public interface ContentService {

	ContentDO get(String cid);

	List<ContentDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	int save(ContentDO bContent);

	int update(ContentDO bContent);

	int remove(String cid);

	int batchRemove(String[] cids);

	/**
	 * 获取随机密码
	 * @return
	 */
	AesPasswordVO randomPassWord();

	/**
	 * 下载源码
	 * @param cid
	 * @param response
	 */
	void download(String cid, HttpServletResponse response);

}
